<?php

namespace App\Http\Requests\Api;


class UserRequest extends FormRequest {
    public function rules() {
        return [
            'name'=>'required|between:2,200|unique:users,name',
            'password'=>'required|between:6,32',
            'verification_key'=>'required|string',
            'verification_code'=>'required|string'
        ];
    }
    public function attributes() {
        return [
            'verification_key'=>'验证码缓存key',
            'verification_code'=>'短信验证码'
        ];
    }
}
